package com.xiaochong.bitong.api.filter;


import com.xc.logclient.filter.InternalApiTraceFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import java.io.IOException;

/**
 * @author cx
 * @date 2018-02-09 15:23
 * Created by cx on 2018/2/9 0009.
 */
@WebFilter(filterName="apitrace",urlPatterns="/*", initParams={@WebInitParam(name="exclusions",value="*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico")})
public class ApiTraceFilter extends InternalApiTraceFilter {

    private final static Logger logger = LoggerFactory.getLogger(ApiTraceFilter.class);


    @Override
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
        super.doFilter(req ,resp ,chain);
    }
}
